package cn.flymod.DHG_mcpePlusEX;

import android.app.*;
import android.content.*;
import android.net.*;
import android.os.*;
import android.view.*;
import android.view.View.*;
import android.widget.*;

public class a_pie extends Activity
{
    /** Called when the activity is first created. */
    @Override
	TextView activitypieTextView1,activitypieTextView2,activitypieTextView3;
	Button activitypieButton1,activitypieButton2,activitypieButton3;
	
    public void onCreate(Bundle savedInstanceState)
	{
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pie);
		
		getActionBar().setDisplayHomeAsUpEnabled(true);
		
		activitypieTextView1=(TextView)findViewById(R.id.activitypieTextView1);
		activitypieTextView2=(TextView)findViewById(R.id.activitypieTextView2);
		activitypieTextView3=(TextView)findViewById(R.id.activitypieTextView3);
		activitypieButton1=(Button)findViewById(R.id.activitypieButton1);
		activitypieButton2=(Button)findViewById(R.id.activitypieButton2);
		activitypieButton3=(Button)findViewById(R.id.activitypieButton3);
		
		activitypieTextView1.setText("PocketInvEditor 修改器");
		activitypieTextView2.setText("PIE是ZhuoweiZhang的一款作品,可以对mcpe中的存档进行各种修改,功能强大!(注:本应用仅提供一付费版,非破解版,仅供交流和学习使用,请自觉于下载24h内删除,如果喜欢,请到Google Play购买正版并给予5★评价!)");
		activitypieTextView3.setText("●如何转换模式:进入修改器→选择存档→点击编辑世界信息→点击游戏模式→选择模式(Survival生存、Creative创造)→退出修改器即可.\n●如何修改时间:打开修改器→选择存档→点击编辑世界信息→更改时间(想看日出选变成日出、想看日落选变成日落、想直接变为早晨填0)→关闭修改器即可.\n●如何添加物品:打开修改器→选择一个生存存档→点击编辑物品→点击菜单键→选择添加→点击浏览并选择物品→输入数量(1~255)→退出修改器即可.\n●如何灭火:打开修改器,选择失火的存档→点击编辑地形→点击选择整个世界→点击替换方块→点第一个浏览,选择火→第二个浏览选择空气→确定并等待读取地形完成即可.");
		activitypieButton1.setText("已付费版试用");
		activitypieButton2.setText("从Google Play市场购买正版");
		activitypieButton3.setText("如何购买正版?");
		
		activitypieButton1.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Uri uri= Uri.parse("http://pan.baidu.com/share/link?shareid=2063922071&uk=2869900060");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitypieButton2.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Uri uri= Uri.parse("https://play.google.com/store/apps/details?id=net.zhuoweizhang.pocketinveditor.pro");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitypieButton3.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Uri uri= Uri.parse("http://tieba.baidu.com/p/2583176034");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});

    }
}
